package jpf.nextsearch.processing.invoker;

import java.util.Collection;

import jpf.nextsearch.base.GenericObject;
import jpf.nextsearch.processing.processor.Processor;

/**
 * @author <a href="mailto:jacek.pruszkowski@gmail.com">Jacek Pruszkowski</a>
 */
public abstract class ProcessorInvoker<T> extends GenericObject {
	private Processor<T> processor;

	public abstract void invokeProcessor(Collection<T> data) throws Exception;

	public void setProcessor(Processor<T> processor) {
		this.processor = processor;
	}

	public Processor<T> getProcessor() {
		return processor;
	}
}
